package pub.guoxin.oops.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import org.springframework.stereotype.Repository;
import pub.guoxin.oops.model.DataAlarmConfig;

import java.util.List;

/**
 * Created by guoxin on 17-8-12.
 */
@Repository
public interface DataAlarmConfigRepository extends MongoRepository<DataAlarmConfig, String>, QueryDslPredicateExecutor<DataAlarmConfig> {
    DataAlarmConfig findByFieldName(String fieldName);

    List<DataAlarmConfig> findByCompanyId(String companyId);
}
